package com.sandy.demo.jpa;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface  UserRepository extends JpaRepository<User, String> {
    @Query("from com.sandy.demo.jpa.User where id = ?1")
    User findByMyId(String id);
}
